home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Eudora 1.3.1 / source / Include / shame.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-16  |  1.3 KB  |  32 lines  |  [TEXT/MPS ]

  1. /* Copyright (c) 1990-1992 by the University of Illinois Board of Trustees */
  2. /**********************************************************************
  3.  * functions of which I am not proud
  4.  **********************************************************************/
  5. #define DoAnAlert(level,string) AlertStr(OK_ALRT,level,string)
  6. #define DoATimedAlert(level,string)                                                                         \
  7.     AlertTicks=GetRLong(ALERT_TIMEOUT)*60+TickCount(),                                        \
  8.     M_T1 = DoAnAlert(level,string),                                                                             \
  9.     AlertTicks = 0,                                                                                                             \
  10.     M_T2=M_T1
  11. #define DoABigAlert(level,string) AlertStr(BIG_OK_ALRT,level,string)
  12. #define DoNumAlert(level,errNum) \
  13.     do {Str255 _s_;DoAnAlert(level,GetRString(_s_,errNum));}while(0)
  14. #define DoNumBigAlert(level,errNum) \
  15.     do {Str255 _s_;DoABigAlert(level,GetRString(_s_,errNum));}while(0)
  16. int ReallyDoAnAlert(int template,int which);
  17. int AlertStr(int template, int which, UPtr str);
  18. Boolean IsSwitch(EventRecord *event);
  19. Boolean Switch(void);
  20. void SetAlertBeep(Boolean onOrOff);
  21. Boolean MommyMommy(short sId,UPtr string);
  22. int Aprintf(short template,short which,short rFormat,...);
  23. #ifdef DEBUG
  24. Handle NuHandle(long size);
  25. UPtr NuPtr(long size);
  26. void SetHandleBig(Handle h,long size);
  27. #else
  28. #define NuHandle NewHandle
  29. #define NuPtr NewPtr
  30. #define SetHandleBig SetHandleSize
  31. #endif
  32.